package com.yusys.single;

public class Test {

    public static void main(String[] args) {
        Cat cat = Cat.getInstance();
        Cat cat1 = Cat.getInstance();
        System.out.println(cat == cat1);

        Dog dog = Dog.getInstance();

        Dog dog1 = Dog.getInstance();

        System.out.println(dog == dog1);
    }
}
